package com.Generics.bean.ch04;

/**
 * @author nmm
 * @date 2024-03-2024/3/31
 * @deriction njm......
 */
public class Cats extends MeeklyAnimals {

    private  String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public void payInfo() {
        System.out.println("我是温顺动物"+name);
    }


    public void sound() {
        System.out.println("喵喵喵喵");
    }
}